import request from '@/router/axios';

export const getCustomerList = (params) => {
  return request({
    url: '/biz-api/pv-supplier/suppliercustomer/list',
    method: 'get',
    params
  })
}

export const getCustomerDetail = (id) => {
  return request({
    url: '/biz-api/pv-supplier/suppliercustomer/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const removeCustomer = (ids) => {
  return request({
    url: '/biz-api/pv-supplier/suppliercustomer/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const addCustomer = (row) => {
  return request({
    url: '/biz-api/pv-supplier/suppliercustomer/submit',
    method: 'post',
    data: row
  })
}

export const updateCustomer = (row) => {
  return request({
    url: '/biz-api/pv-supplier/suppliercustomer/submit',
    method: 'post',
    data: row
  })
}

